package behavior.visitor.element;

import behavior.visitor.visit.Viewer;
import behavior.visitor.wujiang.Wujiang;


public class InteriorElement  implements WujiangElement {

    public InteriorElement(Wujiang wujiang){
        this.wujiang = wujiang;
    }

    private Wujiang wujiang;



    public void accept(Viewer visitor) {
       visitor.visit(this);
    }

    public void internalAffairs(){
        System.out.println(wujiang.getName() + "进行内政");
    }
}
